﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;

/// <summary>
///TextSearchShow 的摘要说明
/// </summary>
public class TextSearchShow:BaseSearchShow
{
	public TextSearchShow()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    protected override IEnumerable<Control> GetSearchContrls(ConfigColumns cCol)
    {
        TextBox ctrl = new TextBox();
        ctrl.ID = cCol.ColumnName + "_SearchShow";
        ctrl.ValidationGroup = "Search";

        Page page = HttpContext.Current.Handler as Page;
        if (page != null && page.IsPostBack)
        {
            string requestValue = HttpContext.Current.Request[cCol.ColumnName + "_SearchShow"];
            if (!string.IsNullOrEmpty(requestValue))
            {
                ctrl.Text = requestValue;
            }
        }

        yield return ctrl;
    }
}
